package com.changgou.goods.controller;

import com.changgou.goods.dao.BrandMapper;
import com.changgou.goods.goods.pojo.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/brand")
public class controller {
    @Autowired
    private BrandMapper brandMapper;

    @RequestMapping()
    private List<Brand> findAll() {
        List<Brand> brandList = brandMapper.selectAll();
        return brandList;
    }

}
